package com.info.zhiduoduo.repository.mapper.maker;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Condition;
import com.info.zhiduoduo.repository.entity.maker.MakerAlipayAccountBook;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bob
 * @since 2021-07-04
 */
public interface MakerAlipayAccountBookMapper extends BaseMapper<MakerAlipayAccountBook> {

	default MakerAlipayAccountBook getByIsvIdAndUserid(int isvId, int userid) {
		return new MakerAlipayAccountBook().selectOne(Condition.create().eq("isv_id", isvId).eq("userid", userid));
	}

	default MakerAlipayAccountBook getByAccountBookId(String accountBookId) {
		return new MakerAlipayAccountBook().selectOne(Condition.create().eq("account_book_id", accountBookId));
	}
}
